package jsonparser.exception;

/**
 * Created by pendragon on 17-5-18.
 */
public class JSONParseException extends JSONException {

    private final int index;

    public JSONParseException(String message, int index) {
        super(message);
        this.index = index;
    }

    public JSONParseException(String message){
        this(message, -1);
    }

    public int getIndex(){
        return index;
    }
}
